<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    {% block content-title %}
        <title>Home</title>
    {% endblock %}
    {% load static %}
    <script src="{% static '/jQuery/jQuery.min.js' %}"></script>
    <script src="{% static '/bootstrap/js/bootstrap.min.js' %}"></script>
    <link rel="stylesheet" href="{% static '/bootstrap/css/bootstrap.min.css' %}">
    <script src="{% static '/SweetAlert2/js/sweetalter2.all.min.js' %}"></script>
    <link rel="stylesheet" href="{% static '/SweetAlert2/css/sweetalert2.min.css' %}">
</head>
<body>
<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                    data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                当屏幕缩小时，显示的三条杠的图标
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="{% url 'home' %}">BookSystem</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li><a href="https://www.qidian.com/" target="_blank">起点中文网</a></li>
                <li><a href="https://fanqienovel.com/" target="_blank">番茄小说网</a></li>
                <li><a href="https://www.qimao.com/" target="_blank">七猫中文网</a></li>
                <li><a href="https://www.ysjf.com/index" target="_blank">影视飓风</a></li>
            </ul>
            <form class="navbar-form navbar-left">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Search">
                </div>
                <button type="submit" class="btn btn-default">搜索</button>
            </form>
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">注册</a></li>
                <li><a href="#">登录</a></li>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>
{% block content %}
    <div class="container-fluid">
        <div class="row">
            <div class="col-md-2">
                {% block content_left %}
                    <div class="list-group">
                        <a href="#" class="list-group-item active disabled">
                            功能菜单
                        </a>
                        <a href="{% url 'book:detail' %}" class="list-group-item">书籍管理</a>
                        <a href="{% url 'reader:main' %}" class="list-group-item">读者界面</a>
                        <a href="{% url 'author:main' %}" class="list-group-item">作者界面</a>
                        <a href="{% url 'publish:main' %}" class="list-group-item">出版社界面</a>
                    </div>
                {% endblock %}
            </div>
            <div class="col-md-9">
                {% block content_main %}
                    <div class="panel panel-primary">
                        <div class="panel-heading">
                            <h3 class="panel-title">欢迎您</h3>
                        </div>
                        <div class="panel-body">
                            <div class="jumbotron">
                                <h1 style='font-family: "FangSong"'><i>欢迎来到图书管理系统！</i></h1>
                                <p>图书管理系统将带你走进黄金屋</p>
                                <p><a class="btn btn-primary btn-lg" href="{% url 'system_detail' %}"
                                      role="button">了解详细</a></p>
                            </div>
                        </div>
                    </div>
                    <div class="panel panel-success">
                        <div class="panel-heading">
                            <h3 class="panel-title">友情推荐</h3>
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-sm-6 col-md-4">
                                    <div class="thumbnail">
                                        <img src="https://i2.hdslb.com/bfs/face/a20ae17bc93de9a31480d8004b422659a052178a.jpg@96w_96h_1c_1s_!web-avatar-space-list.avif"
                                             alt="夜莲annbbers">
                                        <div class="caption">
                                            <h3>娱乐至死</h3>
                                            <p>关注夜莲谢谢喵~</p>
                                            <p><a href="https://space.bilibili.com/1629467333?spm_id_from=333.999.0.0"
                                                  class="btn btn-primary" target="_blank" role="button">查看详细</a></p>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-6 col-md-4">
                                    <div class="thumbnail">
                                        <img src="https://i2.hdslb.com/bfs/face/a20ae17bc93de9a31480d8004b422659a052178a.jpg@96w_96h_1c_1s_!web-avatar-space-list.avif"
                                             alt="夜莲annbbers">
                                        <div class="caption">
                                            <h3>娱乐至死</h3>
                                            <p>关注夜莲谢谢喵~</p>
                                            <p><a href="https://space.bilibili.com/1629467333?spm_id_from=333.999.0.0"
                                                  class="btn btn-primary" target="_blank" role="button">查看详细</a></p>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-6 col-md-4">
                                    <div class="thumbnail">
                                        <img src="https://i2.hdslb.com/bfs/face/a20ae17bc93de9a31480d8004b422659a052178a.jpg@96w_96h_1c_1s_!web-avatar-space-list.avif"
                                             alt="夜莲annbbers">
                                        <div class="caption">
                                            <h3>娱乐至死</h3>
                                            <p>关注夜莲谢谢喵~</p>
                                            <p><a href="https://space.bilibili.com/1629467333?spm_id_from=333.999.0.0"
                                                  class="btn btn-primary" target="_blank" role="button">查看详细</a></p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                {% endblock %}
            </div>
        </div>
    </div>
{% endblock %}
{% block other %}
{% endblock %}
</body>
</html>